import netconfig from '@/config/netconfig'

export const WebsocketUrls = {
  Inhouse: `${netconfig.WEBSOCKETURL}/api/homeappliances/events`,
  Oem: `${netconfig.HcaExtWEBSOCKETURL}/bshpush/single/v1/appliances`,
}
export enum SocketReadyState {
  CONNECTING = 0, //表示尚未建立连接
  OPEN = 1, //表示连接已建立，可以进行通信
  CLOSING = 2, //表示连接正在进行关闭
  CLOSED = 3, //表示连接已经关闭或者连接不能打开
}
